package com.hongdee.crm.exsurance.entity;

import com.hongdee.annotation.ExcelData;
import com.hongdee.base.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 名  称:TCrmCarExSurance
 * 类  型: class
 * 描  述: 车辆延保记录实体类
 * 路  径:com.hongdee.crm.exsurance.entity.TCrmCarExsurance;
 * 作  者: 术洪超
 * 日  期:2017-02-14 17:26
 */

@Entity
@Table(name = "T_CRM_CAR_EXSURANCE")
public class TCrmCarExsurance extends BaseEntity {

    //用户车辆 ID
    @Column(name = "user_carid", length = 32, columnDefinition = "VARCHAR(32) COMMENT '用户车辆 ID'")
    private String userCarId;

    //车架号
    @ExcelData("车架号")
    @Column(name = "vin", length = 32, columnDefinition = "VARCHAR(32) COMMENT '车架号'")
    private String vin;

    //延保年数
    @ExcelData("延保年数")
    @Column(name = "retime", length = 11, columnDefinition = "VARCHAR(11) COMMENT '延保年数'")
    private String reTime;

    //合同开始时间
    @ExcelData("合同开始时间")
    @Column(name = "restart_insurance", length = 32, columnDefinition = "BIGINT COMMENT '合同开始时间'")
    private Long restartInsurance;

    //合同结束时间
    @ExcelData("合同结束时间")
    @Column(name = "restop_insurance", length = 32, columnDefinition = "BIGINT COMMENT '合同结束时间'")
    private Long restopInsurance;

    //开始里程
    @ExcelData("开始里程")
    @Column(name = "start_legend", length = 32, columnDefinition = "VARCHAR(32) COMMENT '开始里程'")
    private String startLegend;

    //结束里程
    @ExcelData("结束里程")
    @Column(name = "stop_legend", length = 32, columnDefinition = "VARCHAR(32) COMMENT '结束里程'")
    private String stopLegend;

    //延保公司编号 0:润华自主  1：厂家延保 2:第三方
    @Column(name = "exsurance_company_id", length = 10, columnDefinition = "VARCHAR(10) COMMENT '延保公司编号'")
    private String exsuranceCompanyId;

    //延保公司名称
    @ExcelData("延保公司名称")
    @Column(name = "exsurance_company_name", length = 32, columnDefinition = "VARCHAR(32) COMMENT '延保公司名称'")
    private String exsuranceCompanyName;
    /**
     * 延保类型编号
     */
    @Column(name = "type_id", length = 10, columnDefinition = "VARCHAR(10) COMMENT '延保类型编号'")
    private String typeId;
    /**
     * 延保类型名称  重要部件保修计划
     */
    @ExcelData("延保类型名称")
    @Column(name = "type_name", length = 32, columnDefinition = "VARCHAR(32) COMMENT '延保类型名称'")
    private String typeName;
    //车主姓名
    @ExcelData("车主姓名")
    @Column(name = "owner_name", length = 32, columnDefinition = "VARCHAR(32) COMMENT '车主姓名'")
    private String ownerName;
    /**
     * 车主电话
     */
    @Column(name = "owner_phone",length = 32, columnDefinition = "VARCHAR(32) COMMENT '车主电话'")
    private String ownerPhone;
    //送修人手机
    @ExcelData("送修人手机")
    @Column(name = "sender_phone", length = 32, columnDefinition = "VARCHAR(32) COMMENT '送修人手机'")
    private String senderPhone;

    //厂家姓名
    @ExcelData("厂家姓名")
    @Column(name = "company_name", length = 64, columnDefinition = "VARCHAR(64) COMMENT '厂家姓名'")
    private String companyName;

    //合同号
    @ExcelData("合同号")
    @Column(name = "contract_num", length = 32, columnDefinition = "VARCHAR(32) COMMENT '合同号'")
    private String contractNum;

    //里程延保状态 0：未进保 1：在保 2：出保，只关乎里程
    @Column(name = "mile_status", length = 10, columnDefinition = "VARCHAR(10) COMMENT '里程延保状态'")
    private String mileStatus;

    //平均保养里程
    @Column(name = "avg_mile", length = 32, columnDefinition = "VARCHAR(32) COMMENT '平均保养里程'")
    private String avgMile;

    //车系代码\关联到车系哪一级
    @Column(name = "car_series", length = 32, columnDefinition = "VARCHAR(32) COMMENT '车系代码'")
    private String carSeries;

    //车辆质保开始时间
    @Column(name = "age_start_date", length = 32, columnDefinition = "BIGINT COMMENT '车辆质保开始时间'")
    private Long ageStartDate;

    //导入公司ID
    @Column(name = "company_id", length = 32, columnDefinition = "VARCHAR(32) COMMENT '导入公司ID'")
    private String companyId;
    //确认人
    @Column(name = "confirmer", length = 32, columnDefinition = "VARCHAR(32) COMMENT '确认人'")
    private String confirmer;

    /**
     *
     * @return ownerPhone
     */
    public String getOwnerPhone() {
        return ownerPhone;
    }

    /**
     *
     * @param ownerPhone String
     */
    public void setOwnerPhone(String ownerPhone) {
        this.ownerPhone = ownerPhone;
    }

    //确认时间
    @Column(name = "confirm_date", length = 22, columnDefinition = "BIGINT COMMENT '确认时间'")
    private Long confirmDate;

    public String getConfirmer() {
        return confirmer;
    }

    public void setConfirmer(String confirmer) {
        this.confirmer = confirmer;
    }

    public Long getConfirmDate() {
        return confirmDate;
    }

    public void setConfirmDate(Long confirmDate) {
        this.confirmDate = confirmDate;
    }

    /**
     * @return typeId
     */
    public String getTypeId() {
        return typeId;
    }

    /**
     * @param typeId String
     */
    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    /**
     * @return typeName
     */
    public String getTypeName() {
        return typeName;
    }

    /**
     * @param typeName String
     */
    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getUserCarId() {
        return userCarId;
    }

    public void setUserCarId(String userCarId) {
        this.userCarId = userCarId;
    }

    public String getVin() {
        return vin;
    }

    public void setVin(String vin) {
        this.vin = vin;
    }

    public String getReTime() {
        return reTime;
    }

    public void setReTime(String reTime) {
        this.reTime = reTime;
    }

    public Long getRestartInsurance() {
        return restartInsurance;
    }

    public void setRestartInsurance(Long restartInsurance) {
        this.restartInsurance = restartInsurance;
    }

    public Long getRestopInsurance() {
        return restopInsurance;
    }

    public void setRestopInsurance(Long restopInsurance) {
        this.restopInsurance = restopInsurance;
    }

    public String getStartLegend() {
        return startLegend;
    }

    public void setStartLegend(String startLegend) {
        this.startLegend = startLegend;
    }

    public String getStopLegend() {
        return stopLegend;
    }

    public void setStopLegend(String stopLegend) {
        this.stopLegend = stopLegend;
    }

    public String getExsuranceCompanyId() {
        return exsuranceCompanyId;
    }

    public void setExsuranceCompanyId(String exsuranceCompanyId) {
        this.exsuranceCompanyId = exsuranceCompanyId;
    }

    public String getExsuranceCompanyName() {
        return exsuranceCompanyName;
    }

    public void setExsuranceCompanyName(String exsuranceCompanyName) {
        this.exsuranceCompanyName = exsuranceCompanyName;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getSenderPhone() {
        return senderPhone;
    }

    public void setSenderPhone(String senderPhone) {
        this.senderPhone = senderPhone;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getContractNum() {
        return contractNum;
    }

    public void setContractNum(String contractNum) {
        this.contractNum = contractNum;
    }

    public String getMileStatus() {
        return mileStatus;
    }

    public void setMileStatus(String mileStatus) {
        this.mileStatus = mileStatus;
    }

    public String getAvgMile() {
        return avgMile;
    }

    public void setAvgMile(String avgMile) {
        this.avgMile = avgMile;
    }

    public String getCarSeries() {
        return carSeries;
    }

    public void setCarSeries(String carSeries) {
        this.carSeries = carSeries;
    }

    public Long getAgeStartDate() {
        return ageStartDate;
    }

    public void setAgeStartDate(Long ageStartDate) {
        this.ageStartDate = ageStartDate;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }
}
